#include <Starflub/stdio.h>
#include <Starflub/string.h>
#include <monitor.h>

void printf(char* pattern, struct io_printf_arg args[]) {
	int i, j;
	int currarg = 0;
	SFCString str;
	int nextIsPattern = 0;
	for(i = 0; i < SFCStringGetLength(pattern); i++) {
		if(str[i] == '%')
			nextIsPattern = 1;
		else if(!nextIsPattern)
			str[i] = pattern[i];
			//TODO: Finish all this...
		if(nextIsPattern) {
			switch(args[currarg].type) {
				case argCHAR:
					//str
					break;
				case argSTRING:
					break;
				case argINT:
					break;
			}
		}
	}
	monitor_write("printf is not implemented yet");
}

